/*
 * Copyright 2007 - 2010 Lars Heuer (heuer[at]semagia.com)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.semagia.mio.ltm.api;

/**
 * EXPERIMENTAL: Listener which gets informed if a namespace / prefix 
 * declaration was found in a LTM source.
 * 
 * @author Lars Heuer (heuer[at]semagia.com) <a href="http://www.semagia.com/">Semagia</a>
 * @version $Rev: 467 $ - $Date: 2010-09-08 10:17:40 +0000 (Wed, 08 Sep 2010) $
 */
public interface IPrefixListener {

    /**
     * Called if a subject identifier prefix / iri pair was found.
     * 
     * Note that a prefix may be reported several times with different IRIs!
     *
     * @param prefix The prefix.
     * @param iri The namespace IRI.
     */
    public void handleSubjectIdentifierNamespace(String prefix, String iri);

    /**
     * Called if a subject locator prefix / iri pair was found.
     * 
     * Note that a prefix may be reported several times with different IRIs!
     *
     * @param prefix The prefix.
     * @param iri The namespace IRI.
     */
    public void handleSubjectLocatorNamespace(String prefix, String iri);

    /**
     * Called if a base URI directive was found.
     *
     * @param iri The base URI.
     */
    public void handleBaseLocator(String iri);
}
